STEP 16: Now let's set up the loop that will count the goals in our kicks list.

  • From drag out Loop through List. Change the list name from my_list to range_list.
  • From drag out Get Count. Drop it INSIDE your loop. Change the variable before the = to freq.
  • Change the list name in front of .count() from my_list to kicks.
  • Change the argument in parentheses from my_param to value.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)